package com.bitdf.txing.order.feign;

import com.bitdf.txing.common.utils.R;
import com.bitdf.txing.order.config.FeignInterceptor;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(
        name = "tx-mall-product",                 // 服务名称
        configuration = FeignInterceptor.class       // 请求拦截器 （关键代码）
)
public interface OrderProductFeignService {

    @GetMapping("/txing/mall/product/spu/skuId/{id}")
    R getSpuInfoBySkuId(@PathVariable("id") Long skuId);
}
